<template>
  <div class="content" @click="go">
    <span class="text">
      也曾年轻少年狂，不信鬼神不信人！
    </span>
  </div>
</template>

<script>
import {useRouter} from 'vue-router'
export default {
  name: "Welcome",
  setup(){
    const router = useRouter()
    function go(){
      router.push({name:'mainContent'})
    }

    return{
      go
    }
  }
}
</script>

<style scoped>
.content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: url("../assets/bg2.jpg") no-repeat;
  background-size: cover;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}
.text{
  font-size: 60px;
  color: white;
  transform: translate(0, -50%);

}

</style>
